#ifndef JOINREQUESTPACKET_H
#define JOINREQUESTPACKET_H

#include "AbstractPacket.h"
#include <QColor>

class JoinRequestPacket : public AbstractPacket
{
public:
    JoinRequestPacket(QString senderAddress, quint16 senderPort, QColor penColor);
    QString getSenderAddress() { return senderAddress; }
    quint16 getSenderPort() { return senderPort; }
    QColor getPenColor() { return penColor; }
    void setSenderAddress(QString senderAddress) { this->senderAddress = senderAddress; }
    void setSenderPort(quint16 senderPort) { this->senderPort = senderPort; }
    void setPenColor(QColor penColor) { this->penColor = penColor; }

    virtual PacketType getPacketType() const;
private:
    QString senderAddress;
    quint16 senderPort;
    QColor penColor;
};

#endif // JOINREQUESTPACKET_H
